package cn.tedu.egmybatis4.mapper;

import cn.tedu.egmybatis4.entity.Product;
import cn.tedu.egmybatis4.vo.ProductOV2;
import cn.tedu.egmybatis4.vo.ProductVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    void insertProduct(Product product);
    ProductVO selectOne(Long id);
    List<ProductOV2>selectAll();
    void delete(Long id);
    void update(Product product);

}
